<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Common:cssjs" />
</head>
<body>
<include file="Category:nav" />
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<script type="text/javascript"> 
	$(function(){
		$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true}, function(){this.close();$(obj).focus();})}});
		$("#catname").formValidator({onshow:"请输入栏目名称",onfocus:"请输入栏目名称",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入栏目名称"}).defaultPassed();
		$("#url").formValidator({onshow:"请输入链接地址",onfocus:"请输入链接地址",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入链接地址"}).defaultPassed();
	})
</script>
<form name="myform" id="myform" action="{:U("Category/add")}" method="post">
<div class="pad-10">
  <div class="col-tab">
  <ul class="tabBut cu-li">
    <li id="tab_setting_1" class="on">基本属性</li>
  </ul>
  <div id="div_setting_1" class="contentList pad-10">
    <table width="100%" class="table_form ">
      
      <tr>
        <th width="200">上级栏目：</th>
        <td><select name="info[parentid]" id="parentid">
            <option value='0'>≡ 作为一级栏目 ≡</option>
            {$category}
          </select></td>
      </tr>
      <tr>
        <th>栏目名称：</th>
        <td><span id="normal_add">
          <input type="text" name="info[catname]" id="catname" class="input-text" value="">
          </span> </td>
      </tr>
      <tr>
        <th>栏目缩略图：</th>
        <td>
          <?php echo Form::images('info[image]', 'image','', 'content');?></td>
      </tr>
      <tr id="tr_domain">
        <th>链接地址</th>
        <td><input type="text" name="info[url]" id="url" class="input-text" size="50" value=""></td>
      </tr>
    </table>
  </div>
  <div class="bk15"></div>
  <input name="catid" type="hidden" value="">
  <input name="type" type="hidden" value="2">
  <input name="info[child]" type="hidden"  value="0">
  <input name="dosubmit" type="submit" value="提交" class="button">
  </div>
</div>
</form>
<!--table_form_off-->
<script language="JavaScript">
window.top.$('#display_center_id').css('display','none');
</script>
</body>
</html>